<?php
define("APPLICATION_NAME", "public");
// Define path to application directory
defined('BASE_DIR')
    || define('BASE_DIR', realpath(dirname(__FILE__)));
defined('APPLICATION_PATH')
    || define('APPLICATION_PATH', realpath(dirname(__FILE__) . '/application/' . APPLICATION_NAME));
// Define application environment
defined('APPLICATION_ENV')
    || define('APPLICATION_ENV', (getenv('APPLICATION_ENV') ? getenv('APPLICATION_ENV') : 'production'));

// Ensure library/ is on include_path
set_include_path(implode(PATH_SEPARATOR, array(
    realpath(APPLICATION_PATH . '/../../library'),
    get_include_path(),
)));

/** Zend_Application */
require_once 'Zend/Loader.php';

Zend_Loader::loadClass("St_Registry");
Zend_Loader::loadClass("St_Application");

// Create application, bootstrap, and run
$application = new St_Application(
    APPLICATION_ENV,
    APPLICATION_PATH . '/configs/config.php'
);

$front = Zend_Controller_Front::getInstance ();
$router = $front->getRouter ();
   //Route to reach the plugin by use of the old link   
//$router->addRoute ( 'ex',
//   		new Zend_Controller_Router_Route ( 'ex/:param1/:param2', array ('controller' => 'index', 'action' => 'editinformation') ));

$application->bootstrap()
            ->run();